package com.basin.common.bus.event;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.cloud.bus.event.Destination;
import org.springframework.cloud.bus.event.RemoteApplicationEvent;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BasinBusEvent<T> extends RemoteApplicationEvent {

    private T data;

    public BasinBusEvent(Object source, String originService, Destination destination, T data) {
        super(source, originService, destination);
        this.data = data;
    }
}
